<template>
  <div id="app">
    <!-- el-container 会检测内部是否有 el-header和el-footer -->
    <el-container style="min-width:960px">
      <el-header>
        <!-- 头部 引入PageHeader组件 -->
        <PageHeader></PageHeader>
      </el-header>
      <el-main style="padding:0">
        <!-- //加载路由视图 /默认加载home -->
        <router-view></router-view>
      </el-main>
      <el-footer>
        <!-- 尾部 引入ageFooter组件 -->
        <PageFooter></PageFooter>
      </el-footer>
    </el-container>
  </div>
</template>
<script>
import PageHeader from "@/components/PageHeader.vue";
import PageFooter from "@/components/PageFooter.vue";
export default {
  components:{
  PageHeader,
  PageFooter
  }
};
</script>
<style>
* {
  margin: 0;
  padding: 0;
}
.el-header {
  background: #333;
}
.el-footer {
  background: #333;
}
.el-main {
  min-height: calc(100vh - 120px);
}
</style>